﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ywxt.Common;

namespace DB_NH.DB_Model.gxjdWebSite
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    /// <summary>
    /// 员工表
    /// </summary>
    [Serializable]
    public class Employee
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public virtual string user_id { get; set; }
        public Employee()
        {
            user_id = Common.NewID();
        }

        /// <summary>
        /// 登录名
        /// </summary>
        public virtual string user_loginname { get; set; }

        /// <summary>
        /// 中文名
        /// </summary>
        public virtual string user_truename_cn { get; set; }

        /// <summary>
        /// 英文名
        /// </summary>
        public virtual string user_truename_en { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public virtual string user_password { get; set; }

        /// <summary>
        ///  所属部门ID
        /// </summary>
        public virtual string dept_id { get; set; }

        /// <summary>
        /// 职务ID
        /// </summary>
        public virtual string post_id { get; set; }

        /// <summary>
        /// 用户移动电话
        /// </summary>
        public virtual string user_mobilephone { get; set; }

        /// <summary>
        /// 用户桌面电话
        /// </summary>
        public virtual string user_desktopphone { get; set; }

        /// <summary>
        /// 用户eMail
        /// </summary>
        public virtual string user_email { get; set; }

        /// <summary>
        ///  权限串
        /// </summary>
        public virtual string user_roles { get; set; }

        /// <summary>
        ///  传真
        /// </summary>
        public virtual string user_fax { get; set; }

        /// <summary>
        ///  is_valid
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        ///  create_date
        /// </summary>
        public virtual DateTime create_date { get; set; }


        /// <summary>
        ///  用户代码
        /// </summary>
        public virtual string user_code { get; set; }

        /// <summary>
        ///  审批流程的邮箱地址
        /// </summary>
        public virtual string sp_mail { get; set; }

        /// <summary>
        ///  用户所在域，用于域用户验证
        /// </summary>
        public virtual string user_domain { get; set; }
    }
}
